HealthAggregationPolicy.fromJson constructor

HealthAggregationPolicy.fromJson(
  1. Object? j
)

Implementation

factory HealthAggregationPolicy.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return HealthAggregationPolicy(
    creationTimestamp: switch (json['creationTimestamp']) {
      null => null,
      Object $1 => decodeString($1),
    },
    description: switch (json['description']) {
      null => null,
      Object $1 => decodeString($1),
    },
    fingerprint: switch (json['fingerprint']) {
      null => null,
      Object $1 => decodeString($1),
    },
    healthyPercentThreshold: switch (json['healthyPercentThreshold']) {
      null => null,
      Object $1 => decodeInt($1),
    },
    id: switch (json['id']) {
      null => null,
      Object $1 => decodeUint64($1),
    },
    kind: switch (json['kind']) {
      null => null,
      Object $1 => decodeString($1),
    },
    minHealthyThreshold: switch (json['minHealthyThreshold']) {
      null => null,
      Object $1 => decodeInt($1),
    },
    name: switch (json['name']) {
      null => null,
      Object $1 => decodeString($1),
    },
    policyType: switch (json['policyType']) {
      null => null,
      Object $1 => decodeString($1),
    },
    region: switch (json['region']) {
      null => null,
      Object $1 => decodeString($1),
    },
    selfLink: switch (json['selfLink']) {
      null => null,
      Object $1 => decodeString($1),
    },
    selfLinkWithId: switch (json['selfLinkWithId']) {
      null => null,
      Object $1 => decodeString($1),
    },
  );
}