toMap method
Implementation
Map<String, dynamic> toMap() => <String, dynamic>{
"type": type.number,
"allowedExtensions": allowedExtensions == null ? null : List<dynamic>.from(allowedExtensions!.map((dynamic x) => x)),
"isCamera": isCamera,
"isSelfieCamera": isSelfieCamera,
};