Fee.fromJson constructor

Fee.fromJson(
  1. Object? json
)

Implementation

factory Fee.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return Fee(
    amount: (map['amount'] as num).toInt(),
    application:
        map['application'] == null ? null : (map['application'] as String),
    currency: (map['currency'] as String),
    description:
        map['description'] == null ? null : (map['description'] as String),
    type: (map['type'] as String),
  );
}