toJson method

String toJson()

Implementation

String toJson() {
  return NameModelMapper.ensureInitialized()
      .encodeJson<NameModel>(this as NameModel);
}