Module.fromJson constructor Null safety

Module.fromJson(
  1. Map _json
)

Implementation

Module.fromJson(core.Map _json)
    : this(
        buildId: _json.containsKey('buildId')
            ? TruncatableString.fromJson(
                _json['buildId'] as core.Map<core.String, core.dynamic>)
            : null,
        module: _json.containsKey('module')
            ? TruncatableString.fromJson(
                _json['module'] as core.Map<core.String, core.dynamic>)
            : null,
      );