GetImageFamilyViewRequest.fromJson constructor

GetImageFamilyViewRequest.fromJson(
  1. Object? j
)

Implementation

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