SourceAttributes.fromMap constructor

SourceAttributes.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory SourceAttributes.fromMap(Map<String, dynamic> map) {
  return SourceAttributes(
    type: map['type'] ?? '',
    amount: (map['amount'] as num).toDouble(),
    currency: map['currency'] ?? '',
    redirect: Redirect.fromMap(map['redirect']),
    billing: PayMongoBilling.fromMap(map['billing']),
  );
}