Resolves to name or to jsonName.
jsonName
String resolveName(bool jsonName) => jsonName ? this.jsonName : name;