toJson method

Map<String, dynamic> toJson()

Implementation

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