fromJson static method

Data fromJson(
  1. dynamic json
)

Implementation

static Data fromJson(dynamic json) {
  return Data(
    accessToken: json['accessToken'],
    user: json['user'] == null ? null : User.fromJson(json['user']),
  );
}