CellsResponse.fromDynamic constructor

CellsResponse.fromDynamic(
  1. dynamic json
)

Implementation

CellsResponse.fromDynamic(dynamic json) {
  neighboringCellList = [];
  if (json['neighboringCellList'] != null) {
    json['neighboringCellList'].forEach((v) {
      neighboringCellList!.add(new CellType.fromJson(v));
    });
  }
  primaryCellList = [];
  if (json['primaryCellList'] != null) {
    json['primaryCellList'].forEach((v) {
      primaryCellList!.add(new CellType.fromJson(v));
    });
  }

  cellDataList = [];
  if (json['cellDataList'] != null) {
    json['cellDataList'].forEach((v) {
      cellDataList!.add(new CellDataList.fromJson(v));
    });
  }
}