JsonObject constructor

JsonObject(
  1. List<Object?> fields, {
  2. bool? stringify,
})

Construct JsonObject. Parameter fields defines property names in toJson. Use stringify to control toString behaviour. @macro equatable_stringify}

Implementation

JsonObject(List<Object?> fields, {bool? stringify})
    : _props = [...fields.where((e) => e != null)],
      _stringify = stringify;