UserImage.fromJson constructor

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

Implementation

factory UserImage.fromJson(
  Map<String, dynamic> jsonSerialization,
  _i1.SerializationManager serializationManager,
) {
  return UserImage(
    id: serializationManager.deserialize<int?>(jsonSerialization['id']),
    userId:
        serializationManager.deserialize<int>(jsonSerialization['userId']),
    version:
        serializationManager.deserialize<int>(jsonSerialization['version']),
    url: serializationManager.deserialize<String>(jsonSerialization['url']),
  );
}