BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.fromJson constructor

BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.fromJson(
  1. Object? j
)

Implementation

factory BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy.fromJson(
  Object? j,
) {
  final json = j as Map<String, Object?>;
  return BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy(
    data: switch (json['data']) {
      null => null,
      Object $1 => decodeString($1),
    },
    name: switch (json['name']) {
      null => null,
      Object $1 => decodeString($1),
    },
  );
}