FileHandlerAccept.fromJson constructor

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

Implementation

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