UniqueId.fromJson constructor

UniqueId.fromJson(Map<String, dynamic> json)

Implementation

factory UniqueId.fromJson(Map<String, dynamic> json) {
  assert(json != null && json.isNotEmpty, 'UniqueId.fromJson cannot be null or empty');
  return UniqueId._(Uuid(json['id']));
}