Billing.fromJson constructor
Billing.fromJson(
- Object? j
Implementation
factory Billing.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return Billing(
consumerDestinations: switch (json['consumerDestinations']) {
null => [],
List<Object?> $1 => [
for (final i in $1) Billing_BillingDestination.fromJson(i),
],
_ => throw const FormatException(
'"consumerDestinations" is not a list',
),
},
);
}