PopModel.fromJson constructor

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

Implementation

PopModel.fromJson(Map<String, dynamic> json)
    : name = json['name'],
      icon = json['icon'],
      id = json['id'];