factory DocumentServiceWarning.fromJson(Map<String, dynamic> json) { return DocumentServiceWarning( message: json['message'] as String?, ); }