Avatar.fromJson constructor

Avatar.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory Avatar.fromJson(Map<String, Object?> json) {
  return Avatar(
    fileName: json[r'fileName'] as String?,
    id: json[r'id'] as String? ?? '',
    isDeletable: json[r'isDeletable'] as bool? ?? false,
    isSelected: json[r'isSelected'] as bool? ?? false,
    isSystemAvatar: json[r'isSystemAvatar'] as bool? ?? false,
    owner: json[r'owner'] as String?,
    urls: json[r'urls'] as Map<String, Object?>?,
  );
}