InvoiceSubscriptionDetails.fromJson constructor

InvoiceSubscriptionDetails.fromJson(
  1. Object? json
)

Implementation

factory InvoiceSubscriptionDetails.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return InvoiceSubscriptionDetails(
      metadata: map['metadata'] == null
          ? null
          : (map['metadata'] as Map).cast<String, Object?>().map((
                key,
                value,
              ) =>
                  MapEntry(
                    key,
                    (value as String),
                  )));
}