UserInfo.fromJson constructor

UserInfo.fromJson(
  1. Map<String, dynamic> jsonSerialization,
  2. SerializationManager serializationManager
)

Implementation

factory UserInfo.fromJson(
  Map<String, dynamic> jsonSerialization,
  _i1.SerializationManager serializationManager,
) {
  return UserInfo(
    id: serializationManager.deserialize<int?>(jsonSerialization['id']),
    userIdentifier: serializationManager
        .deserialize<String>(jsonSerialization['userIdentifier']),
    userName: serializationManager
        .deserialize<String>(jsonSerialization['userName']),
    fullName: serializationManager
        .deserialize<String?>(jsonSerialization['fullName']),
    email:
        serializationManager.deserialize<String?>(jsonSerialization['email']),
    created: serializationManager
        .deserialize<DateTime>(jsonSerialization['created']),
    imageUrl: serializationManager
        .deserialize<String?>(jsonSerialization['imageUrl']),
    scopeNames: serializationManager
        .deserialize<List<String>>(jsonSerialization['scopeNames']),
    blocked:
        serializationManager.deserialize<bool>(jsonSerialization['blocked']),
  );
}