ListImagesRequest.fromJson constructor

ListImagesRequest.fromJson(
  1. Object? j
)

Implementation

factory ListImagesRequest.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return ListImagesRequest(
    filter: switch (json['filter']) {
      null => null,
      Object $1 => decodeString($1),
    },
    maxResults: switch (json['maxResults']) {
      null => null,
      Object $1 => decodeInt($1),
    },
    orderBy: switch (json['orderBy']) {
      null => null,
      Object $1 => decodeString($1),
    },
    pageToken: switch (json['pageToken']) {
      null => null,
      Object $1 => decodeString($1),
    },
    project: switch (json['project']) {
      null => '',
      Object $1 => decodeString($1),
    },
    returnPartialSuccess: switch (json['returnPartialSuccess']) {
      null => null,
      Object $1 => decodeBool($1),
    },
  );
}