DragDataItem.fromJson constructor

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

Implementation

factory DragDataItem.fromJson(Map<String, dynamic> json) {
  return DragDataItem(
    mimeType: json['mimeType'] as String,
    data: json['data'] as String,
    title: json.containsKey('title') ? json['title'] as String : null,
    baseURL: json.containsKey('baseURL') ? json['baseURL'] as String : null,
  );
}