fromMap method Null safety

void fromMap(
  1. Map<String, dynamic> _data
)

Implementation

void fromMap(Map<String, dynamic> _data) {
  if (_data != null) {
    _data.forEach((key, value) {
      setValue(key, value);
    });
  }
}