PatchTargetHttpProxyRequest.fromJson constructor

PatchTargetHttpProxyRequest.fromJson(
  1. Object? j
)

Implementation

factory PatchTargetHttpProxyRequest.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return PatchTargetHttpProxyRequest(
    project: switch (json['project']) {
      null => '',
      Object $1 => decodeString($1),
    },
    requestId: switch (json['requestId']) {
      null => null,
      Object $1 => decodeString($1),
    },
    targetHttpProxy: switch (json['targetHttpProxy']) {
      null => '',
      Object $1 => decodeString($1),
    },
    targetHttpProxyResource: switch (json['targetHttpProxyResource']) {
      null => null,
      Object $1 => TargetHttpProxy.fromJson($1),
    },
  );
}