GlossaryEntry.fromJson constructor

GlossaryEntry.fromJson(
  1. Map json_
)

Implementation

GlossaryEntry.fromJson(core.Map json_)
    : this(
        description: json_['description'] as core.String?,
        name: json_['name'] as core.String?,
        termsPair: json_.containsKey('termsPair')
            ? GlossaryTermsPair.fromJson(
                json_['termsPair'] as core.Map<core.String, core.dynamic>)
            : null,
        termsSet: json_.containsKey('termsSet')
            ? GlossaryTermsSet.fromJson(
                json_['termsSet'] as core.Map<core.String, core.dynamic>)
            : null,
      );