DividendData.fromJson constructor

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

Implementation

DividendData.fromJson(Map<String, dynamic> json) {
  date = DateTime.parse(json["date"]);
  recordDate = json['recordDate'];
  amount = json['amount']?.toDouble();
  declarationDate = json['declarationDate'];
  adjustedAmount = json['adjustedAmount']?.toDouble();
  payDate = json['payDate'];
}