IndexDeclaration.fromMap constructor Null safety

IndexDeclaration.fromMap(
  1. Map map
)

Implementation

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