InsertServiceAttachmentRequest.fromJson constructor

InsertServiceAttachmentRequest.fromJson(
  1. Object? j
)

Implementation

factory InsertServiceAttachmentRequest.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return InsertServiceAttachmentRequest(
    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),
    },
    serviceAttachmentResource: switch (json['serviceAttachmentResource']) {
      null => null,
      Object $1 => ServiceAttachment.fromJson($1),
    },
  );
}