fromRecord method
Copies the value of the specified record to this record.
Implementation
Record fromRecord(Record? record){
if(record == null){
return this;
}
if(_schema != null && record._schema != null && _schema!.length <= record._schema!.length){
for(String name in _schema!.fieldMap.keys){
if(record.containsName(name)){
this[name] = record[name];
}
}
}else if(record._schema != null){
for(String name in record._schema!.fieldMap.keys){
if(containsName(name)){
this[name] = record[name];
}
}
}
return this;
}