StatesAndLgaResponse.fromJson constructor

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

Implementation

StatesAndLgaResponse.fromJson(Map<String, dynamic> json) {
  if (json['states'] != null) {
    states = <States>[];
    json['states'].forEach((v) {
      states!.add(new States.fromJson(v));
    });
  }
}