Data.fromJson constructor

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

Converts a map into a Data object.

Implementation

factory Data.fromJson(Map<String, dynamic> json) => Data(
      token: json["token"],
      username: json["username"],
      password: json["password"],
      isExisting: json["isExisting"],
      isProfileUpdated: json["isProfileUpdated"],
      config: json["config"] == null ? null : Config.fromJson(json["config"]),
    );