FlexStart.fromJson constructor

FlexStart.fromJson(
  1. Object? j
)

Implementation

factory FlexStart.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return FlexStart(
    maxRuntimeDuration: switch (json['maxRuntimeDuration']) {
      null => null,
      Object $1 => protobuf.Duration.fromJson($1),
    },
  );
}