toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() => {
  'valid': valid,
  'authenticated': authenticated,
  'diagnostics': diagnostics
      .map((diagnostic) => diagnostic.toJson())
      .toList(),
};