PatchPacketMirroringRequest.fromJson constructor

PatchPacketMirroringRequest.fromJson(
  1. Object? j
)

Implementation

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