IdentitySessionResponse.fromMap constructor
IdentitySessionResponse.fromMap(
- Map<String, dynamic> json
)
Implementation
factory IdentitySessionResponse.fromMap(Map<String, dynamic> json) => IdentitySessionResponse(
date: json["date"] == null ? null : DateTime.parse(json["date"]),
timeStamp: json["time_stamp"],
token: json["token"],
userCode: json["user_code"],
locations:
json["locations"] == null ? [] : List<Location>.from(json["locations"]!.map((x) => Location.fromMap(x))),
device: json["device"] == null ? null : Device.fromMap(json["device"]),
sucursales: json["sucursales"] == null
? []
: List<Sucursale>.from(json["sucursales"]!.map((x) => Sucursale.fromMap(x))),
usuario: json["usuario"] == null ? null : Usuario.fromMap(json["usuario"]),
session: json["session"] == null ? null : Session.fromMap(json["session"]),
);