UserImage.fromJson constructor

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

Implementation

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