1
import 'dart:core';
2

3
abstract class _Jsonable extends Object {
4
  /// Returns the JSON object representation (Map<String, dynamic>)
5
  /// of this object.
6
  Map<String, dynamic> toJson();
7
}
8

9
/// An object that can be encoded into some valid JSON.
10
mixin Jsonable implements _Jsonable {
11 1
  Map<String, dynamic> toMap() {
12 1
    return toJson();
13
  }
14
}

Read our documentation on viewing source code .

Loading