PlatformModel.fromJson constructor

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

Implementation

PlatformModel.fromJson(Map<String, dynamic> json) {
  if (json["id"] is int) id = json["id"];
  logoUrl = json["logoUrl"];
  if (json["label"] is String) label = json["label"];
  if (json["display"] is int) display = json["display"];
  if (json["doubleAuthActivated"] is int) {
    doubleAuthActivated = json["doubleAuthActivated"];
  }
}