toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final Map<String, dynamic> data = <String, dynamic>{};
  if (holdings != null) {
    data['holdings'] = holdings!.map((v) => v.toJson()).toList();
  }
  data['atDate'] = atDate;
  data['symbol'] = symbol;
  return data;
}