PatchServiceAttachmentRequest.fromJson constructor

PatchServiceAttachmentRequest.fromJson(
  1. Object? j
)

Implementation

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