Extension.fromJson constructor

Extension.fromJson(
  1. Map json_
)

Implementation

Extension.fromJson(core.Map json_)
    : this(
        category: json_.containsKey('category')
            ? json_['category'] as core.String
            : null,
        disabled: json_.containsKey('disabled')
            ? json_['disabled'] as core.bool
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        typeDescriptor: json_.containsKey('typeDescriptor')
            ? json_['typeDescriptor'] as core.String
            : null,
        version: json_.containsKey('version')
            ? BuildVersion.fromJson(
                json_['version'] as core.Map<core.String, core.dynamic>)
            : null,
      );