Data.fromMap constructor
Create the object from a Map<String, dynamic>
Implementation
factory Data.fromMap(Map<String, dynamic> map) {
return Data(
id: map['id'] != null ? map['id'] as String : null,
objec: map['objec'] != null ? map['objec'] as String : null,
ownedBy: map['ownedBy'] != null ? map['ownedBy'] as String : null,
);
}