Dividends.fromJson constructor

Dividends.fromJson(
  1. Map<String, dynamic> json
)

Implementation

Dividends.fromJson(Map<String, dynamic> json) {
  if (json['data'] != null) {
    data = <DividendData>[];
    json['data'].forEach((v) {
      data!.add(DividendData.fromJson(v));
    });
  }
  symbol = json['symbol'];
}