ResourceStatusShutdownDetails.fromJson constructor

ResourceStatusShutdownDetails.fromJson(
  1. Object? j
)

Implementation

factory ResourceStatusShutdownDetails.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return ResourceStatusShutdownDetails(
    maxDuration: switch (json['maxDuration']) {
      null => null,
      Object $1 => Duration.fromJson($1),
    },
    requestTimestamp: switch (json['requestTimestamp']) {
      null => null,
      Object $1 => decodeString($1),
    },
    stopState: switch (json['stopState']) {
      null => null,
      Object $1 => decodeString($1),
    },
    targetState: switch (json['targetState']) {
      null => null,
      Object $1 => decodeString($1),
    },
  );
}