UniqueDeclaration.fromMap constructor Null safety

UniqueDeclaration.fromMap(
  1. Map map
)

Implementation

UniqueDeclaration.fromMap(Map map) {
  indexName = map['indexName'] as String;
  fields = map['fields'].cast<String>();
}