toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    'name': name,
    'configurable': configurable,
    'enumerable': enumerable,
    if (value != null) 'value': value!.toJson(),
    if (writable != null) 'writable': writable,
    if (get != null) 'get': get!.toJson(),
    if (set != null) 'set': set!.toJson(),
    if (wasThrown != null) 'wasThrown': wasThrown,
    if (isOwn != null) 'isOwn': isOwn,
    if (symbol != null) 'symbol': symbol!.toJson(),
  };
}