FileHandler.fromJson constructor

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

Implementation

factory FileHandler.fromJson(Map<String, dynamic> json) {
  return FileHandler(
    action: json['action'] as String,
    accepts:
        (json['accepts'] as List)
            .map((e) => FileHandlerAccept.fromJson(e as Map<String, dynamic>))
            .toList(),
    displayName: json['displayName'] as String,
  );
}