UpdateKmsKeyRegionSnapshotRequest.fromJson constructor

UpdateKmsKeyRegionSnapshotRequest.fromJson(
  1. Object? j
)

Implementation

factory UpdateKmsKeyRegionSnapshotRequest.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return UpdateKmsKeyRegionSnapshotRequest(
    project: switch (json['project']) {
      null => '',
      Object $1 => decodeString($1),
    },
    region: switch (json['region']) {
      null => '',
      Object $1 => decodeString($1),
    },
    regionSnapshotUpdateKmsKeyRequestResource:
        switch (json['regionSnapshotUpdateKmsKeyRequestResource']) {
          null => null,
          Object $1 => RegionSnapshotUpdateKmsKeyRequest.fromJson($1),
        },
    requestId: switch (json['requestId']) {
      null => null,
      Object $1 => decodeString($1),
    },
    snapshot: switch (json['snapshot']) {
      null => '',
      Object $1 => decodeString($1),
    },
  );
}