FlutterData.fromMap constructor

FlutterData.fromMap(
  1. Map map
)

Implementation

factory FlutterData.fromMap(Map map) {
  return FlutterData(
    usesMaterialDesign: map['uses-material-design'],
    assets: map['assets'] != null && map['assets'] is List
        ? (map['assets'] as List).map((e) => e.toString()).toList()
        : null,
    generate: map['generate'],
    fonts: map['fonts'] != null && map['fonts'] is List
        ? (map['fonts'] as List).map((e) => Font.fromMap(e)).toList()
        : null,
  );
}