resolveName method

String resolveName(
  1. bool jsonName
)

Resolves to name or to jsonName.

Implementation

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