ViolationDetails.fromJson constructor

ViolationDetails.fromJson(
  1. Map json_
)

Implementation

ViolationDetails.fromJson(core.Map json_)
    : this(
        asset:
            json_.containsKey('asset') ? json_['asset'] as core.String : null,
        observed: json_.containsKey('observed')
            ? (json_['observed'] as core.Map<core.String, core.dynamic>).map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        serviceAccount: json_.containsKey('serviceAccount')
            ? json_['serviceAccount'] as core.String
            : null,
      );