encode static method

Map<String, dynamic> encode(
  1. Duration value
)

Implementation

static Map<String, dynamic> encode(Duration value) {
	Map<String, dynamic> entityAsMap = {
		"value" : value.value,
		"unit" : value.unit == null ? null : CodeStub.encode(value.unit!)
	};
	return entityAsMap;
}