UserInfoPublic.fromJson constructor

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

Implementation

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