FileFilter.fromJson constructor

FileFilter.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory FileFilter.fromJson(Map<String, dynamic> json) {
  return FileFilter(
    name: json.containsKey('name') ? json['name'] as String : null,
    accepts: json.containsKey('accepts')
        ? (json['accepts'] as List).map((e) => e as String).toList()
        : null,
  );
}