@override Object toJson() => { 'domain': ?domain, if (metadatas.isNotDefault) 'metadatas': metadatas, 'reason': ?reason, };