State.fromJson constructor

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

Implementation

factory State.fromJson(Map<String, dynamic> json) {
  return State(
    name: json['name'] as String,
    stateCode: json['state_code'] as String,
  );
}