FutureResourcesSpec.fromJson constructor

FutureResourcesSpec.fromJson(
  1. Object? j
)

Implementation

factory FutureResourcesSpec.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return FutureResourcesSpec(
    deploymentType: switch (json['deploymentType']) {
      null => null,
      Object $1 => decodeString($1),
    },
    locationPolicy: switch (json['locationPolicy']) {
      null => null,
      Object $1 => FutureResourcesSpecLocationPolicy.fromJson($1),
    },
    targetResources: switch (json['targetResources']) {
      null => null,
      Object $1 => FutureResourcesSpecTargetResources.fromJson($1),
    },
    timeRangeSpec: switch (json['timeRangeSpec']) {
      null => null,
      Object $1 => FlexibleTimeRange.fromJson($1),
    },
  );
}