CellsResponse.fromJson constructor

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

Implementation

CellsResponse.fromJson(Map<String, dynamic> json) {
  if (json['neighboringCellList'] != null) {
    neighboringCellList = [];
    json['neighboringCellList'].forEach((v) {
      neighboringCellList!.add(CellType.fromJson(v));
    });
  }
  if (json['primaryCellList'] != null) {
    primaryCellList = [];
    json['primaryCellList'].forEach((v) {
      primaryCellList!.add(CellType.fromJson(v));
    });
  }
}