AccountAnnualRevenue.fromJson constructor

AccountAnnualRevenue.fromJson(
  1. Object? json
)

Implementation

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