BackendServiceCdnPolicyNegativeCachingPolicy.fromJson constructor

BackendServiceCdnPolicyNegativeCachingPolicy.fromJson(
  1. Object? j
)

Implementation

factory BackendServiceCdnPolicyNegativeCachingPolicy.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return BackendServiceCdnPolicyNegativeCachingPolicy(
    code: switch (json['code']) {
      null => null,
      Object $1 => decodeInt($1),
    },
    ttl: switch (json['ttl']) {
      null => null,
      Object $1 => decodeInt($1),
    },
  );
}