Annotation.fromJson constructor

Annotation.fromJson(
  1. Map json_
)

Implementation

Annotation.fromJson(core.Map json_)
    : this(
        attributes: json_.containsKey('attributes')
            ? Attributes.fromJson(
                json_['attributes'] as core.Map<core.String, core.dynamic>)
            : null,
        description: json_.containsKey('description')
            ? TruncatableString.fromJson(
                json_['description'] as core.Map<core.String, core.dynamic>)
            : null,
      );