Finding.fromJson constructor

Finding.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory Finding.fromJson(Map<String, dynamic> json) {
  return Finding(
    accountId: json['accountId'] as String,
    arn: json['arn'] as String,
    createdAt: json['createdAt'] as String,
    id: json['id'] as String,
    region: json['region'] as String,
    resource: Resource.fromJson(json['resource'] as Map<String, dynamic>),
    schemaVersion: json['schemaVersion'] as String,
    severity: json['severity'] as double,
    type: json['type'] as String,
    updatedAt: json['updatedAt'] as String,
    confidence: json['confidence'] as double?,
    description: json['description'] as String?,
    partition: json['partition'] as String?,
    service: json['service'] != null
        ? Service.fromJson(json['service'] as Map<String, dynamic>)
        : null,
    title: json['title'] as String?,
  );
}