AccountMonthlyEstimatedRevenue.fromJson constructor

AccountMonthlyEstimatedRevenue.fromJson(
  1. Object? json
)

Implementation

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