ResourceLink.fromJson constructor

ResourceLink.fromJson(
  1. Map json, {
  2. String? id,
})

Implementation

factory ResourceLink.fromJson(Map json, {String? id}) {
  return serializers
      .deserializeWith(ResourceLink.serializer, json)!
      .rebuild((b) => b..id = id);
}