ObjectRead.fromJson constructor

ObjectRead.fromJson(
  1. Map<String, dynamic> data
)

Implementation

factory ObjectRead.fromJson(Map<String, dynamic> data) {
  final status = ObjectReadStatus.values.byName(data['status']);
  return ObjectRead(status, data['details']);
}