StopAsyncReplicationDiskRequest.fromJson constructor

StopAsyncReplicationDiskRequest.fromJson(
  1. Object? j
)

Implementation

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