Map<String, dynamic> toMap() { return <String, dynamic>{ 'method': method, 'errorMessage': errorMessage, 'message': message, 'result': result, }; }