Service.fromJson constructor

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

Implementation

factory Service.fromJson(Map<String, dynamic> json) {
  return Service(
    action: json['action'] != null
        ? Action.fromJson(json['action'] as Map<String, dynamic>)
        : null,
    archived: json['archived'] as bool?,
    count: json['count'] as int?,
    detectorId: json['detectorId'] as String?,
    eventFirstSeen: json['eventFirstSeen'] as String?,
    eventLastSeen: json['eventLastSeen'] as String?,
    evidence: json['evidence'] != null
        ? Evidence.fromJson(json['evidence'] as Map<String, dynamic>)
        : null,
    resourceRole: json['resourceRole'] as String?,
    serviceName: json['serviceName'] as String?,
    userFeedback: json['userFeedback'] as String?,
  );
}