DescriptorOperationReceivedEvent.fromJson constructor

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

Implementation

factory DescriptorOperationReceivedEvent.fromJson(Map<String, dynamic> json) {
  return DescriptorOperationReceivedEvent(
    descriptorId: json['descriptorId'] as String,
    type: DescriptorOperationType.fromJson(json['type'] as String),
    data: json.containsKey('data') ? json['data'] as String : null,
  );
}