PatchSslPolicyRequest.fromJson constructor

PatchSslPolicyRequest.fromJson(
  1. Object? j
)

Implementation

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