toDtoDart method

String toDtoDart([
  1. String className = 'Root'
])

Converts a JSON string to a Dart PODO DTO class. This assumes that the JSON string is a valid JSON object. If it is not, an exception will be thrown.

Implementation

String toDtoDart([String className = 'Root']) =>
    (jsonDecode(this) as Map<String, dynamic>).toDtoDart(className);