DeleteSnapshotRequest.fromJson constructor

DeleteSnapshotRequest.fromJson(
  1. Object? j
)

Implementation

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