GetServiceAttachmentRequest.fromJson constructor

GetServiceAttachmentRequest.fromJson(
  1. Object? j
)

Implementation

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