FeesData.fromJson constructor

FeesData.fromJson(
  1. dynamic data
)

Implementation

factory FeesData.fromJson(dynamic data) {
  var json = DynamicJsonExtension.getJsonMap(data);
  return FeesData(
    amount: json['amount'],
    fees: (json['fees'] as List<dynamic>?)
        ?.map((item) => FeeItem.fromJson(item))
        .toList(),
  );
}