PlanProductInlineProductParams.fromJson constructor
PlanProductInlineProductParams.fromJson(
- Object? json
Implementation
factory PlanProductInlineProductParams.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return PlanProductInlineProductParams(
active: map['active'] == null ? null : (map['active'] as bool),
id: map['id'] == null ? null : (map['id'] as String),
metadata: map['metadata'] == null
? null
: (map['metadata'] as Map).cast<String, Object?>().map((
key,
value,
) =>
MapEntry(
key,
(value as String),
)),
name: (map['name'] as String),
statementDescriptor: map['statement_descriptor'] == null
? null
: (map['statement_descriptor'] as String),
taxCode: map['tax_code'] == null ? null : (map['tax_code'] as String),
unitLabel:
map['unit_label'] == null ? null : (map['unit_label'] as String),
);
}