Map<String, dynamic> toMap() { return <String, dynamic>{ 'message': ?message, 'state': ?state, 'updateTime': ?updateTime, }; }