fromJson static method

Relation fromJson(
  1. Map json
)

Implementation

static Relation fromJson(Map json) => Relation(
  name: json['name'] as String,
  label: Label.fromJson(
    json['label'] as Map,
    RelationLabel.values,
    RelationLabel.other,
  ),
  metadata: JsonHelpers.decode(json['metadata'], PropertyMetadata.fromJson),
);